<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
</head>
<body>
    <h2>练习3</h2>
    <form action="" method="post">
        <h3>用户注册</h3>
        <!-- 身份验证 - 必填信息 -->
        <h4>身份验证 - 必填信息</h4>
        <label for="username">用户名</label><br>
        <input type="text" id="username" name="username"><br>
        <label for="password">密码</label><br>
        <input type="password" id="password" name="password"><br>
        <label for="password_confirm">密码确认</label><br>
        <input type="password" id="password_confirm" name="password_confirm"><br>
        <!-- 身份信息 - 选填信息 -->
        <h4>身份信息 - 选填信息</h4>
        <label for="city">所在城市</label><br>
        <input type="text" id="city" name="city"><br>
        <label for="workplace">工作单位</label><br>
        <input type="text" id="workplace" name="workplace"><br>
        <label for="home_address">家庭住址</label><br>
        <input type="text" id="home_address" name="home_address"><br>
        <!-- 其他个人信息 -->
        <h4>其他个人信息</h4>
        <label for="gender">性别</label>
        <select id="gender" name="gender">
            <option value="male">男</option>
            <option value="female">女</option>
        </select><br>
        <label for="hobbies">爱好</label>
        <input type="checkbox" id="music" name="hobbies" value="music">音乐
        <input type="checkbox" id="sports" name="hobbies" value="sports">体育
        <input type="checkbox" id="computers" name="hobbies" value="computers">计算机<br>
        <label for="favorite_companies">喜欢的公司</label>
        <input type="checkbox" id="baidu" name="favorite_companies" value="baidu">百度
        <input type="checkbox" id="microsoft" name="favorite_companies" value="microsoft">微软中国
        <input type="checkbox" id="google" name="favorite_companies" value="google">谷歌中国<br>
        <label for="personal_brief">个人简介</label><br>
        <textarea id="personal_brief" name="personal_brief"></textarea><br>
        <input type="submit" value="提交您的资料">
        <input type="reset" value="重置填写资料">
  